package com.moli.iov.handle.alarm;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * <p>
 *
 * </p>
 *
 * @author: zql
 * @Date: 2019/2/13 10:32
 */
public class Main {

    protected static final Logger logger = LoggerFactory.getLogger(Main.class);

    public static void main(String[] args) {
        logger.info("★★★★★★iov-handle-alarm服务开始启动★★★★★★");
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("spring/spring-base.xml");
        context.start();
        logger.info("★★★★★★iov-handle-alarm服务启动成功★★★★★★");
        synchronized (Main.class){
            do {
                try {
                    Main.class.wait();
                } catch (Exception e) {
                    logger.error("启动类异常", e);
                }
            }while(true);
        }
    }
}

